// pages/index/home.js
var app = getApp();
var http_service = app.data.service;
Page({
  data: {
    service: http_service,
    data:[]
  },
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: http_service+'/index.php/getcommodity',
      data:{},
      success:function(res){
        that.setData({
          data:res.data
        })
      }
    })
  },
  onReady: function () {

  },
  onShow: function () {

  },
  onHide: function () {

  },
  onUnload: function () {

  },
  onPullDownRefresh: function () {

  },
  onReachBottom: function () {

  },
  onShareAppMessage: function () {

  },
  onPageScroll: function () {

  },
  onTabItemTap(item) {
  
  },
})
